/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.jr2tecnologia.model;

import br.com.jr2tecnologia.model.entity.Credit;
import java.util.List;
import javax.annotation.PostConstruct;
import javax.ejb.Local;
import javax.ejb.TransactionAttribute;
import javax.ejb.TransactionAttributeType;

/**
 *
 * @author ronildo
 */

@Local
public interface CreditPersistenceLocal {

    @PostConstruct
    void initialize();

    @TransactionAttribute(TransactionAttributeType.REQUIRED)
    void persist(Credit entity);

    Credit findById(Long id);

    Credit findByValue(Double value);

    List<Credit> list(Credit credit);

    List<Credit> listAll();

    void remove(Credit entity);

    void update(Credit entity);

}
